Git IS Good (CTF Learn)
Forensics
The flag used to be there. But then I redacted it. Good Luck. https://mega.nz/#!3CwDFZpJ!Jjr55hfJQJ5-jspnyrnVtqBkMHGJrd6Nn_QqM7iXEuc
Donât forget we always work inside VMs .
So weâll upload the file there and then :
Here we have decompressed the file, after verifying its type :
Here we navigated to the compressed file using cd, then read the flag.txt file using cat .
I didnât think it would be that easy, so I continued my research :
The command **grep -r 'flag'** **/home/sansforensics/CTFLERARN/gitIsGood/.git/** is searching for the string 'flag' recursively in all files within the specified directory **/home/sansforensics/CTFLERARN/gitIsGood/.git/** and its subdirectories. Here's a breakdown of the components:
-
grep: This is the command-line utility used for searching patterns in text.
-
-r: This option stands for ârecursiveâ and is used to search for the specified pattern in all files within the specified directory and its subdirectories.
-
âflagâ: This is the string or pattern that
grepis searching for in the files. -
/home/sansforensics/CTFLERARN/gitIsGood/.git/: This is the path to the directory where the search is being performed. In this case, itâs theÂ
.gitdirectory within thegitIsGoodproject.
The **git show HEAD** command in Git is used to display the detailed information about the latest commit in the current branch. Here's a breakdown of the components:
-
git: This is the Git version control system.
-
show: This is the command used to show various types of objects in Git, such as commits, tags, or trees.
-
HEAD: This is a special reference that points to the latest commit on the current branch. It represents the tip of the current branch.
When you run git show HEAD, Git will display information about the latest commit on the current branch, including details such as the commit message, author, date, and the changes made in that commit.
you see information about the latest commit ,author, date, commit message, and a unified diff showing the changes made in the commit. The actual output may vary based on the content of your commit .
Here is the flag\ See you soon in other reportsâŚ.!!
Abdelwahab_Shandy
AS_Cyber